package com.musicstore.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.musicstore.entity.AlbumEntity;


public interface AlbumDao {
	List<AlbumEntity> getAlbumTitle(@Param("title") String title,@Param("startIndex") int startIndex,@Param("pageSize") int pageSize);
	// 分页查询
	List<AlbumEntity> getAlbumPage(@Param("gid")int gid,@Param("title") String title,@Param("startIndex") int startIndex,
			@Param("pageSize")int pageSize);
	int getRowsCount(@Param("gid")int gid,@Param("title") String title);
	AlbumEntity getById(@Param("id")int id);
	void updateAlbmu(AlbumEntity album);
	void addAlbum(AlbumEntity album);
}
